home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / contrib / utils / sendit.sh < prev   
Linux/UNIX/POSIX Shell Script  |  1996-03-28  |  1KB  |  50 lines

  1. #! /bin/sh
  2. #
  3. # $Id:$
  4. #
  5. #            T H E    P I N E    M A I L   S Y S T E M
  6. #
  7. #   Mike Seibel
  8. #   Networks and Distributed Computing
  9. #   Computing and Communications
  10. #   University of Washington
  11. #   Administration Building, AG-44
  12. #   Seattle, Washington, 98195, USA
  13. #   Internet: mikes@CAC.Washington.EDU
  14. #
  15. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  16. #
  17. #
  18. #   Pine and Pico are registered trademarks of the University of Washington.
  19. #   No commercial use of these trademarks may be made without prior written
  20. #   permission of the University of Washington.
  21. #
  22. #   Pine, Pico, and Pilot software and its included text are Copyright
  23. #   1989-1996 by the University of Washington.
  24. #
  25. #   The full text of our legal notices is contained in the file called
  26. #   CPYRIGHT, included with this distribution.
  27. #
  28.  
  29.  
  30. #
  31. #  Simple script to expedite mail posting at the expense of timely
  32. #  error reporting and 8BITMIME support.
  33. #
  34. # NOTE: If for any reason POSTFILE below is created on an nfs mounted
  35. #       file system, the trap statement below must get removed or
  36. #       altered, and the last line must get replaced with:
  37. #
  38. #       ( ${POSTTOOL} ${POSTARGS} < ${POSTFILE} ; rm -f ${POSTFILE} ) &
  39. #
  40.  
  41. POSTFILE=/tmp/send$$
  42. POSTTOOL=/usr/lib/sendmail
  43. POSTARGS="-oi -oem -t"
  44.  
  45. umask 077
  46. trap "rm -f ${POSTFILE}; exit 0" 0 1 2 13 15
  47.  
  48. cat > ${POSTFILE}
  49. ${POSTTOOL} ${POSTARGS} < ${POSTFILE} & 
  50.